/*
 *  NameGenerator.cpp
 *  TractionEdge
 *
 *  Created by Steven Hamilton on 20/12/09.
 *  Copyright 2009 scorch.org. All rights reserved.
 *
 */

#include "NameGenerator.h"
#include <stdlib.h>

NameGenerator::NameGenerator()
{
    firstNames.push_back("Arthur");
    firstNames.push_back("Alan");
    firstNames.push_back("Alfred");
    firstNames.push_back("Albert");
    firstNames.push_back("Alex");
    firstNames.push_back("Andrew");
    firstNames.push_back("Archie");
    firstNames.push_back("Arnold");
    firstNames.push_back("Ben");
    firstNames.push_back("Bennet");
    firstNames.push_back("Bernard");
    firstNames.push_back("Byron");
    firstNames.push_back("Calvin");
    firstNames.push_back("Charles");
    firstNames.push_back("Clifford");
    firstNames.push_back("Daniel");
    firstNames.push_back("David");
    firstNames.push_back("Edgar");
    firstNames.push_back("Edmund");
    firstNames.push_back("Edward");
    firstNames.push_back("Frank");
    firstNames.push_back("Fred");
    firstNames.push_back("Geoffrey");
    firstNames.push_back("George");
    firstNames.push_back("Gilbert");
    firstNames.push_back("Harland");
    firstNames.push_back("Harold");

    surnames.push_back("Ainsworth");
    surnames.push_back("Aldridge");
    surnames.push_back("Archer");
    surnames.push_back("Ashton");
    surnames.push_back("Atkins");
    surnames.push_back("Atwater");
    surnames.push_back("Atwood");
    surnames.push_back("Bagley");
    surnames.push_back("Bagstock");
    surnames.push_back("Baker");
    surnames.push_back("Banks");
    surnames.push_back("Bardell");
    surnames.push_back("Barton");
    surnames.push_back("Bashford");
    surnames.push_back("Batterbee");
    surnames.push_back("Beard");
    surnames.push_back("Beggley");
    surnames.push_back("Belcher");
    surnames.push_back("Bennett");
    surnames.push_back("Bicker");
    surnames.push_back("Blundy");
    surnames.push_back("Barclay");
    surnames.push_back("Boodle");
    surnames.push_back("Bowles");
    surnames.push_back("Bramble");
    surnames.push_back("Brattle");
    surnames.push_back("Bray");
    surnames.push_back("Brewer");
    surnames.push_back("Brick");
    surnames.push_back("Bridges");
    surnames.push_back("Brogley");
    surnames.push_back("Brownlow");
    surnames.push_back("Bucket");
    surnames.push_back("Buckle");
    surnames.push_back("Butcher");
    surnames.push_back("Butler");
    surnames.push_back("Cadwell");
    surnames.push_back("Castle");
    surnames.push_back("Catchpole");
    surnames.push_back("Chester");
    surnames.push_back("Chickering");
    surnames.push_back("Chuffley");
    surnames.push_back("Cobb");
    surnames.push_back("Cook");
    surnames.push_back("Cooper");
}

NameGenerator::~NameGenerator(){}

std::string NameGenerator::name()
{
    std::string name;
    int iFirst=rand() % firstNames.size();
    int iLast=rand() % surnames.size();
    name=firstNames[iFirst]+" "+surnames[iLast];
    return name;
}
